package my.util;

import java.util.EventObject;

public class MyPropertyChangeEvent extends EventObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = 476732626335036875L;

	private final String propertyName;
	private final Object oldValue;
	private final Object newValue;

	public MyPropertyChangeEvent(Object source, String propertyName, Object oldValue, Object newValue) {
		super(source);
		this.propertyName = propertyName;
		this.oldValue = oldValue;
		this.newValue = newValue;
	}

	public String getPropertyName() {
		return this.propertyName;
	}

	public Object getOldValue() {
		return this.oldValue;
	}

	public Object getNewValue() {
		return this.newValue;
	}

}
